<template>
  <FullScreenDialog :title="dialog.title" :width="dialog.width" :screenFlag="dialog.screenFlag" :visible="dialog.visible"
    v-if="dialog.visible" :showFooter="dialog.showFooter" @onClose="onClose" @onConfirm="confirm">
    <template v-slot:content>
    </template>
  </FullScreenDialog>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
import { ElForm } from 'element-plus';

import SysDialog from '@/components/SysDialog.vue';
import useDialog from '@/hooks/useDialog';
import useInstance from '@/hooks/useInstance';
import { EditType, Title } from '@/type/BaseEnum';
// 使用
const { dialog, onClose, onShow } = useDialog()
const { global, proxy } = useInstance();
// 父级数据
// const props = defineProps({

// })
// 保存
const confirm = () => { }
const show = (type: string, row?: any) => {
  console.log('show');
  dialog.width = 1334
  dialog.height = 900
  dialog.title = row.fileName
  dialog.showFooter = false
  dialog.screenFlag = false
  onShow()
  // global.$resetForm(addTemForm.value,dialogModel)
  // if(type === EditType.EDIT){
  //   global.$objCopy(row,dialogModel)
  // }
}
defineExpose({
  show
})

</script>
<style scoped lang='scss'></style>